FROM java:8
ENV PARAMS="--spring.profiles.active=dev"
ADD target/business-database.jar /my-database.jar
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 8114/tcp
ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS /my-database.jar $PARAMS"]